<template>
	<view>
		<!-- 登录 -->
		<my-login v-if="!token"></my-login>
		
		<!-- 用户信息 -->
		<my-userinfo v-else></my-userinfo>
	</view>
</template>

<script>
	import bedgeMix from '@/mixins/tabbae-badge.js'
	import {mapState} from 'vuex'
	export default {
		mixins: [bedgeMix],
		data() {
			return {

			};
		},
		computed:{
			...mapState('myUser',['token'])
		}
	}
</script>

<style lang="scss">
page, .my-container{
	height: 100%;
}
</style>